<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<h:head></h:head>
<body>
	<f:view locale="#{language.locale}">
		<center>
			<rich:dataTable value="#{confirmLeave.usersLeave}" var="his"
				border="1">
				<rich:column width="200px">
					<f:facet name="header">#{msg['leaveno']}</f:facet>
				#{his.leaveID}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['userid']}</f:facet>
				#{his.userID}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['datefrom']}</f:facet>
				#{his.dateFrom}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['dateto']}</f:facet>
				#{his.dateTo}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['days']}</f:facet>
				#{his.days}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['reason']}</f:facet>
				#{his.reason}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['status']}</f:facet>
				#{his.status}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['lt']}</f:facet>
				#{his.type}
			</rich:column>
				<rich:column>
					<f:facet name="header">#{msg['action']}</f:facet>
					<h:form>
						<h:commandLink action="#{confirmLeave.approve}"
							value="#{eMessage.approve}"
							onclick="if (! confirm('#{eMessage.app()}')) return false">
							<f:param name="type" value="#{his.flag}" />
							<f:param name="LID" value="#{his.leaveID}" />
						</h:commandLink>
					</h:form>
				&nbsp;
				<h:form>
						<h:commandLink action="#{confirmLeave.reject}"
							value="#{eMessage.reject}"
							onclick="if (! confirm('#{eMessage.rej()}')) return false">
							<f:param name="type" value="#{his.flag}" />
							<f:param name="LID" value="#{his.leaveID}" />
						</h:commandLink>
					</h:form>
				</rich:column>
			</rich:dataTable>
			<h:outputText value="#{confirmLeave.result}" />
		</center>
	</f:view>
</body>
</html>
